//
//  SXAboutUsView.m
//  ShiXun
//
//  Created by lanou on 15/11/4.
//  Copyright © 2015年 张琪. All rights reserved.
//

#import "SXAboutUsView.h"

@implementation SXAboutUsView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"shixunapp"]];
        image.backgroundColor = [UIColor whiteColor];
        image.frame = CGRectMake((kScreenWidth - 60) / 2, 60, 60, 60);
        [self addSubview:image];
        
        UILabel *version = [[UILabel alloc] initWithFrame:CGRectMake((kScreenWidth - 100) / 2, 125, 100, 20)];
        version.text = @"Version 1.0";
        version.font = [UIFont fontWithName:@"American Typewriter" size:15];
        version.textAlignment = NSTextAlignmentCenter;
        [self addSubview:version];
        
        UILabel *introduce = [[UILabel alloc] initWithFrame:CGRectMake(20, 180, kScreenWidth - 40, 20)];
        introduce.textAlignment = NSTextAlignmentLeft;
        introduce.text = @"时讯简介";
        [self addSubview:introduce];
        
        UILabel *introduceLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 205, kScreenWidth - 40, 90)];
        introduceLabel.backgroundColor = [UIColor whiteColor];
        [introduceLabel.layer setMasksToBounds:YES];
        introduceLabel.layer.cornerRadius = 5.0;
        introduceLabel.numberOfLines = 0;
        introduceLabel.font = [UIFont systemFontOfSize:14];
        introduceLabel.text = @"时讯是一款年轻的个性化定制的资讯阅读软件，它包含了时政新闻、娱乐杂志、热门话题、精简短片等众多内容，根据大众对阅读内容的偏好，实现个性化定制。";
        [self addSubview:introduceLabel];
        
        UILabel *us = [[UILabel alloc] initWithFrame:CGRectMake(20, 305, kScreenWidth - 40, 20)];
        us.textAlignment = NSTextAlignmentLeft;
        us.text = @"联系我们";
        [self addSubview:us];
        
        UILabel *usContact = [[UILabel alloc] initWithFrame:CGRectMake(20, 330, kScreenWidth - 40, 70)];
        usContact.backgroundColor = [UIColor whiteColor];
        [usContact.layer setMasksToBounds:YES];
        usContact.layer.cornerRadius = 5.0;
        usContact.numberOfLines = 0;
        usContact.font = [UIFont fontWithName:@"Hoefler Text" size:14];
        usContact.text = @"张  琪   sqdhy-zq@163.com\n谭金星   jin451578429@163.com\n杜建刘   dujianliu@163.com";
        [self addSubview:usContact];
    
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
